package car.slyc.service;

import car.slyc.dao.LogMapper;
import car.slyc.model.Log;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LogServiceImpl {

    @Resource
    private LogMapper logMapper;


    // 添加
    public int add(Log log) {
       return logMapper.add(log);

    }



    //  查询所有
    public List<Log> getall() {
        return logMapper.getAll();
    }



    //  批量删除
    public int dels(String id) {
        return logMapper.Dels(id);
    }


}
